package com.ict.txmsv2.controller.system;

import com.ict.txmsv2.model.MethodDescrition;
import com.ict.txmsv2.model.Record;
import com.ict.txmsv2.model.RespPageBean;
import com.ict.txmsv2.services.RecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author linzzz
 * @desc ...
 * @date 2020-12-16
 */
@RestController
@RequestMapping("/system/logs")
public class SystemLogController {

    @Autowired
    RecordService recordService;

    @MethodDescrition("分页查询日志记录")
    @GetMapping("/")
    public RespPageBean getAllLog(@RequestParam(defaultValue = "1")Integer page,
                                  @RequestParam(defaultValue = "10")Integer size,
                                   Record record){
        return recordService.getAllLog(page,size,record);
    }
}
